<?php
namespace Amis\form;
class Radios extends FormItem
{
    public string $type = 'input-';

    public function options($options)
    {
        $this->options = $options;
        return $this;
    }

    public function source($api)
    {
        $this->source = $api;
        return $this;
    }

    public function labelField(string $labelField)
    {
        $this->labelField = $labelField;
        return $this;
    }

    public function valueField(string $valueField)
    {
        $this->valueField = $valueField;
        return $this;
    }

    public function columnsCount(int $columnsCount = 1)
    {
        $this->columnsCount = $columnsCount;
        return $this;
    }

    public function inline(bool $inline = true)
    {
        $this->inline = $inline;
        return $this;
    }

    public function autoFill(array $autoFill)
    {
        $this->autoFill = $autoFill;
        return $this;
    }
}